#include<stdio.h>
struct Student            
{
    int num;
    char name[20];
    float score;
};
int main()
{
    struct Student stu[5]={{11111,"yi",11},{22222,"er",22},{33333,"san",33},{44444,"si",44},{55555,"wu",55}};
    struct Student temp;
    const int n=5;
    int i,j,k;
    printf("The order is:\n");
    for(i=0;i<n-1;i++)
    {
        k=i;
        if(stu[j].score>stu[k].score)
        k=j;
        temp=stu[k];
        stu[k]=stu[i];
        stu[i]=temp;
    }
    for(i=0;i<n;i++)
    printf("%6d %8s %6.2f\n",stu[i].num,stu[i].name,stu[i].score);
    printf("\n");
    return 0;
}
